// @charset "utf-8";
/**
 * 赚钱效应model
 */
define(function (require, exports, module) {

	var zqxyModel = {
		zqxyData : {},
		shData : {},
		request : async function (param, callback) {
			var self = this;
			var code = '883900';
			var begin = param.begin, end = param.end;
			var period = param.period;

			if (param.period == 'min') {
				await clientQuoteBase.requestMin(code, begin, end, callback);
			}
			if (param.period == 'day') {
				await clientQuoteBase.requestDay(code, begin, end, callback);
			}
			// var options = {
			// 	stocks : ['883900','1A0001'],
			// 	quote : ['ZHANGDIEFU', '6'],
			// 	period : param.period,
			// 	callback : callback
			// };
			// var quoteData = new ComHQData(options);
			// quoteData.create();
			// if (param.period === 'min') {
			// 	url = 'http://zx.10jqka.com.cn/file/fyzzt.php?date=' + begin;
			// } else {
			// 	url = 'http://zx.10jqka.com.cn/file/fyzzt.php?begin=' + begin + '&end=' + end;
			// }
			// interactions.ajaxJsonp({
			// 	url : url,
			// 	jsonpCallback : 'fyzzt',
			// 	callback : function (result) {
			// 		self.zqxyData = result;
			// 		callback(result);
			// 	}
			// });
		},
		requestSh : async function (param, callback) {
			var self = this;
			var code = '1A0001';
			var begin = param.begin, end = param.end;
			var period = param.period;

			if (param.period == 'min') {
				await clientQuoteBase.requestMin(code, begin, end, callback);
			}
			if (param.period == 'day') {
				await clientQuoteBase.requestDay(code, begin, end, callback);
			}
		}
	};



	module.exports = zqxyModel;
});